package com.tiger.converter;

import java.time.LocalTime;
import java.time.temporal.ChronoUnit;

import org.springframework.core.convert.converter.Converter;

public class LocalTimeToStringConverter implements Converter<LocalTime, String> {

	@Override
	public String convert(LocalTime source) {
		return source.truncatedTo(ChronoUnit.SECONDS).toString();
	}

}
